import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/zixun',
    name: 'zixun',
    component: ()=>import('../views/zixun.vue'),
  },
  {
    path: '/dongtai',
    name: 'dongtai',
    component: ()=>import('../views/dongtai.vue'),
    children:[
      {
        path: 'guangchang',
        name: 'guangchang',
        component: ()=>import('../views/DT/guangchang.vue'),
      },
      {
        path: 'jingxuan',
        name: 'jingxuan',
        component: ()=>import('../views/DT/jingxuan.vue'),
      },
      {
        path: 'haoyou',
        name: 'haoyou',
        component: ()=>import('../views/DT/haoyou.vue'),
      }
    ]
     
  },
  {
    path: '/liaotian',
    name: 'liaotian',
    component: ()=>import('../views/liaotian.vue'),
    children:[
      {
        path:'xiaoxi',
        name:'xiaoxi',
        component: ()=>import('../views/LT/xiaoxi.vue'),
      },
      {
        path:'haoyou',
        name:'LThaoyou',
        component: ()=>import('../views/LT/LThaoyou.vue'),
      },
    ]
  },
  {
    path: '/wode',
    name: 'wode',
    component: ()=>import('../views/wode.vue')
  },
  {
    path: '/shezhi',
    name: 'shezhi',
    component: ()=>import('../views/cebianlan/shezhi.vue')
  },
  {
    path: '/denglu',
    name: 'denglu',
    component: ()=>import('../views/cebianlan/denglu.vue')
  },
  {
    path: '/fankui',
    name: 'fankui',
    component: ()=>import('../views/cebianlan/fankui.vue')
  },
  {
    path: '/faxian',
    name: 'faxian',
    component: ()=>import('../views/cebianlan/faxian.vue')
  },
  {
    path: '/shoucang',
    name: 'shoucang',
    component: ()=>import('../views/cebianlan/shoucang.vue')
  },
  {
    path: '/zhuce',
    name: 'zhuce',
    component: ()=>import('../views/cebianlan/zhuce.vue')
  },
  {
    path: '*',
    name: '404',
    component: ()=>import('../views/404.vue')
  },
  {
    path: '/',
    redirect: 'zixun'
  },
]
const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})
export default router
